import React, { PureComponent } from 'react'
import { ActivityIndicator } from 'antd-mobile'
import PropTypes from 'prop-types'
import css from './index.module.scss'
export default class Loading extends PureComponent {
    static propTypes = {
        text: PropTypes.string
    }
    static defaultProps = {
        text: '加载中...'
    }
    render() {
        return (
            <div className={css['loading-wrap']}>
                <ActivityIndicator size="large" text={this.props.text} />
            </div>
        )
    }
}
